package com.qq.springbootdemo.repository;

import com.qq.springbootdemo.domain.entity.WalletEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

// 钱包仓库接口
public interface WalletRepository extends JpaRepository<WalletEntity, Long> {
    Optional<WalletEntity> findByUserId(Long userId);
    List<WalletEntity> findByUserIdAndCurrency(Long userId, String currency);
}

